package com.woniuxy.amusementparkos.dao.fzw;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.woniuxy.amusementparkos.entity.fzw.Organization;
import com.woniuxy.amusementparkos.entity.fzw.Role;

public interface OrganizationDao {
	Organization selectOrganizationNameById(int organization_id);


	List<Organization> selectAllOrganizationNames();


	/**
	 * 根据页面查询所有组织信息
	 * @param i
	 * @param limit
	 * @return
	 */
	List<Organization> selectAllOrganizationByPageNumber(@Param("page")Integer page,@Param("limit") Integer limit);


	/**
	 * 添加组织信息
	 * @param organization
	 */
	void insertOrganization(Organization organization);


	/**
	 * 查询用户信息
	 * @param organization_id
	 * @return
	 */
	int selectUserByOrganization_id(Integer organization_id);


	/**
	 * 
	 * @param usingOrganization
	 * @return
	 */
	String[] selectOrganizationsByIds(@Param("usingOrganization")List<Integer> usingOrganization);


	/**
	 * 
	 * @param organization_ids
	 */
	void deleteOrganizations(int[] organization_ids);


	/**
	 * 编辑保存用户信息
	 * @param organization
	 */
	void updateOrganization(Organization organization);


	/**
	 * @return
	 */
	Long selectCount();


}
